package com.cskaoyan.service;

import com.cskaoyan.bean.BaseData;
import com.cskaoyan.bean.Goods;
import com.cskaoyan.bean.GrouponRules;
import com.cskaoyan.bean.CreateGrouponRulesVO;
import com.cskaoyan.bean.GrouponListRecordVO;

import java.math.BigDecimal;
import java.util.Date;

public interface GrouponService {

    BaseData queryGrouponRules(Integer page,Integer limit,Integer goodsId,String sort,String order);

    Goods queryGoodsByGoodsId(Integer goodsId);

    CreateGrouponRulesVO insertGrouponRules(Goods goods, BigDecimal discount, Integer discountMember, Date expireTime);

    void updateGrouponRules(GrouponRules grouponRules);

    void deleteGrouponRules(Integer id);

    GrouponListRecordVO getGrouponListRecord(Integer page,Integer limit,Integer goodsId,String sort,String order);
}
